<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>

<!--  2010-07-19 按角色查询任命状态 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>按角色查询岗位安排</title>
	<link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
	<script src="<%=path%>/js/resizeIframe.js" type="text/javascript"></script>
	<script src="<%=path%>/dwr/engine.js"></script>
    <script src="<%=path%>/dwr/util.js"></script>
    <script src="<%=path%>/dwr/interface/shiyueDwr.js"></script>
	<script type="text/javascript">
		 window.onload = function(){
      	
      	resizeIframe();
        
          
        
      	shiyueDwr.getAllYear(getAllYearCallBack);
	      
        }
          //获取年度下拉列表框
	    function getAllYearCallBack(yearMap) {
	        DWRUtil.addOptions("year", yearMap);
	        if('${year}'!="")
	    	{
	    	  document.getElementById('year').value="${year}";
	    	}else if('${currentYear}'!="")
	    	{
	    	  document.getElementById('year').value="${currentYear}";
	    	}
	     }
    function tdClick(url)
    {
      window.location.href=url;
    }
    </script>

  </head>
  
  <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" align="left" class="f_5">岗位安排查询</td> <!--  2011-03-31 任命状态查询 改 岗位安排查询 -->
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#9DD12E"></td>
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="left" valign="bottom" background="<%=path %>/images/sywesp_24.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="90" align="left"><table width="90" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                <td align="center" background="<%=path %>/images/sywesp_18.gif" class="f_6" onclick="tdClick('<%=path %>/findClassByTeacherGradeAndClassAction.action?year=${currentYear}');" style="cursor:pointer;">按教师查询</td>
                <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"></td>
              </tr>
            </table></td>
            <td width="5" align="left">&nbsp;</td>
            <td width="130" align="left"><table width="130" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                <td align="center" background="<%=path %>/images/sywesp_18.gif" class="f_6" onclick="tdClick('<%=path %>/findTeacherByStaffRoomGradeAndClassAction.action?year=${currentYear}');" style="cursor:pointer;">按组织结构查询</td>
                <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"></td>
              </tr>
            </table></td>
            <td width="5" align="left">&nbsp;</td>
            <td width="110" align="left"><table width="110" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1" align="left" valign="bottom" bgcolor="#CBCBCB"></td>
                <td align="center" background="<%=path %>/images/sywesp_25.gif" class="f_9">按角色查询</td>
                <td width="1" height="31" align="right" valign="bottom" bgcolor="#CBCBCB"></td>
              </tr>
            </table></td>
            <td align="left">&nbsp;</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td align="left" valign="top" class="tb_8 border_2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="25" align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" nowrap="nowrap">按年度查询：
                  <select name="year" id="year" onchange="tdClick('roleToTeaGradeAndClassAction.action?year='+this.value);">
                  </select><font color='red'> (注：仅年级组长，备课组长，教研组长，部门负责人有往年任命记录，其他都按当前年度查询)</font><!-- 
                  &nbsp;教师:<input name="textfield2" type="text" size="10" />
                  &nbsp;组织:<input name="textfield22" type="text" size="10" />
                  &nbsp;角色:<input name="textfield23" type="text" size="10" /></td>
                <td align="right"><img src="<%=path %>/images/nv_hidden.gif" width="14" height="14" /> <a href="#">下载</a> --></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
              <tr>
                <td width="12%" height="30" align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;角色</td>
                <td align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;教师(组织)</td>
                </tr>
              <c:choose>
                <c:when test="${! empty roleList}">
                  <c:forEach items="${roleList}" var="role">
	                <c:if test="${role.roleId ne 'jzadmin' && role.roleId ne 'zlbzr'&& role.roleId ne 'sysadmin' && role.roleId ne 'member'}">
	                  <tr>
		                <td bgcolor="#FFFFFF" class="f_4" nowrap="nowrap"> &nbsp;${role.name }</td>
		                <td width="88%" height="30" align="left" bgcolor="#FFFFFF">
		                  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
		                    <c:forEach items="${UserMap[role.roleId]}" var="str">
		                      <tr>
		                        <td bgcolor="#FFFFFF" height="30">&nbsp;${str }</td>
		                      </tr>
		                    </c:forEach>
		                  </table>
		                </td>
		              </tr>
	                </c:if>
                  </c:forEach>
                </c:when>
                <c:otherwise><tr><td bgcolor="#FFFFFF" height="30" colspan="2" align="center"><font color="#CCCCCC">无相关信息</font></td></tr></c:otherwise>
              </c:choose>
            </table></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="30" align="right">&nbsp;</td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
  </body>
</html>
